import request from '@/utils/myrequest'

export function getLotInfo(kvs) {
  return request({
    url: '/tms/DynaxTrackIn/GetLotInfo',
    method: 'get',
    kvs
  })
}

export function doTrackIn(kvs) {
  return request({
    url: '/tms/DynaxTrackIn/TrackIn',
    method: 'POST',
    kvs
  })
}

export function doTrackOut(kvs) {
  return request({
    url: '/tms/DynaxTrackOut/TrackOut',
    method: 'POST',
    kvs
  })
}

export function getLotInfoByEqpId(kvs) {
  return request({
    url: '/tms/DynaxTrackIn/GetLotInfoByEqpId',
    method: 'get',
    kvs
  })
}

export function canCelTrackIn(kvs) {
  return request({
    url: '/tms/DynaxTrackIn/PageCanCelTrackIn',
    method: 'POST',
    kvs
  })
}

export function updateEqpStatus(kvs) {
  return request({
    url: '/tms/DynaxTrackIn/UpdateEqpStatus',
    method: 'POST',
    kvs
  })
}

export function getReasonCode(kvs) {
  return request({
    url: '/tms/DynaxTrackOut/GetGetReasonCode',
    method: 'get',
    kvs
  })
}

export function getEqpListTree(kvs) {
  return request({
    url: '/config/EquipmentBase/GetEqpTreeByUserId',
    method: 'get',
    kvs
  })
}

export function getEqpStatusByEAP(kvs) {
  return request({
    url: '/tms/DynaxTrackIn/GetEqpStatusByEAP',
    method: 'get',
    kvs
  })
}

export function doPPSelect(kvs) {
  return request({
    url: '/tms/DynaxTrackIn/PPSelect',
    method: 'POST',
    kvs
  })
}

export function addRecord(kvs) {
  return request({
    url: '/mtms/ToolingChangeRecord/AddRecord',
    method: 'get',
    kvs
  })
}

export function checkToolingMaterialInfo(kvs) {
  return request({
    url: '/mtms/ToolingMaterial/CheckToolingMaterialInfo',
    method: 'POST',
    kvs
  })
}

export function getToolingMaterialInfo(kvs) {
  return request({
    url: '/mtms/ToolingMaterial/GetToolingMaterialInfo',
    method: 'get',
    kvs
  })
}

export function updateToolingMaterialInfo(kvs) {
  return request({
    url: '/mtms/ToolingMaterial/UpdateToolingMaterialInfo',
    method: 'get',
    kvs
  })
}

